# !/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author:zzly
@file:filters.py
@time:2020/09/08
"""
import django_filters

from apps.article.models import Article


class ArticleAppFilter(django_filters.FilterSet):
    title = django_filters.CharFilter(field_name='title', lookup_expr='icontains')

    class Meta:
        model = Article
        fields = ('title',)
